﻿<link rel="stylesheet" href="${ctx}/common/common.css" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %>
<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">采购信息</legend>
  </fieldset>
  <div class="layui-col-md12">
    <table class="layui-table">
      <thead>
        <tr>
          <th>订单编号</th>
          <th>供应商</th>
          <th>采购物料</th>
          <th>到货日期</th>
          <th>供应商联系人</th>
          <th>联系人电话</th>
          <th>检验报告</th>
        </tr>
      </thead>
      <tbody>
        <c:forEach items="${procurementInfoList}" var="p">
          <c:if test="${not empty p}">
            <tr>
              <td>${p.pprocurementInfoCode}</td>
              <td>${p.supplierName}</td>
              <td>
                <c:forEach items="${p.materiaDetaillList}" var="m">
                  ${m.materialName}&nbsp;&nbsp;${m.actualQuantity}&nbsp;&nbsp;${m.specifications}/${m.unit}
                </c:forEach>
              </td>
              <td>${p.supplyTime}</td>
              <td>${p.contact}</td>
              <td>${p.phone}</td>
              <td>
                <a href="${ctx}/supervise/traceabilityQuery/toInspection?recipientId=${p.recipientId}">
                  <span style="cursor: pointer; color: blue">查看</span>
                </a>
              </td>
            </tr>
          </c:if>
        </c:forEach>
      </tbody>
    </table>
    <c:if test="${empty procurementInfoList}">
      <div style="text-align: center">无数据</div>
    </c:if>
  </div>
</div>
